// components/dialog/dialog.js
Component({
  /**
   * 组件的属性列表
   */
  options: {
    styleIsolation: 'apply-shared'
  },
  properties: {
    'show': {
      type: Array,
      value: '',
      observer: function(newVal, oldVal) {
        this.setData({
          receiverRegion: newVal
        })
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    receiverRegion: ['省份..', '城市..', '区县..'],
    customItem: '全部'
  },

  /**
   * 组件的方法列表
   */
  methods: {
    bindRegionChange: function(e) {
      //console.log('picker发送选择改变，携带值为', e.detail.value);
      this.setData({
        receiverRegion: e.detail.value
      })
      this.triggerEvent('myevent', {
        receiverRegion: e.detail.value
      })
    },
  },
})